package hr.ctg.domain.action.drzava;

import hr.ctg.domain.model.Drzava;
import hr.ctg.service.dao.DrzavaDAO;

import java.util.List;

import org.jboss.seam.annotations.Factory;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;

@Name("drzavaSearchAction")
public class DrzavaSearchAction {
	@In
	DrzavaDAO drzavaDAO;

	@Factory("drzave")
	public List<Drzava> getAll() {
		return drzavaDAO.findAll();
	}
}
